package cn.echo.modules.sys.entity;


import java.util.Date;
import java.util.List;

/**
 * Created by LSF_ on 2017/5/7.
 */
public class Admin {
    public static final String FLAG_NORMAL="0";
    public static final String FLAG_DEL="1";

    public  String id;
    public  String username;
    public  String password;
    public  String sex;
    public  Date loginTime;
    public int age;
    public int phone;
    public  String email;
    public String address;
    public  Date createDate;
    public  String createBy;
    public  Date updateDate;
    public  String updateBy;
    public  String  delFlag;
    public List<User> users;

public  Admin(){}

    public Admin(String id, String username, String password, String sex, Date loginTime, int age, int phone, String email, String address, Date createDate, String createBy, Date updateDate, String updateBy, String delFlag) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.loginTime = loginTime;
        this.age = age;
        this.phone = phone;
        this.email = email;
        this.address = address;
        this.createDate = createDate;
        this.createBy = createBy;
        this.updateDate = updateDate;
        this.updateBy = updateBy;
        this.delFlag = delFlag;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public static String getFlagNormal() {
        return FLAG_NORMAL;
    }

    public static String getFlagDel() {
        return FLAG_DEL;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", loginTime=" + loginTime +
                ", age=" + age +
                ", phone=" + phone +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", createDate=" + createDate +
                ", createBy='" + createBy + '\'' +
                ", updateDate=" + updateDate +
                ", updateBy='" + updateBy + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", users=" + users +
                '}';
    }

}
